package cn.iocoder.yudao.module.psy.controller.admin.resource.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import java.util.*;

@Schema(description = "管理后台 - 心理评估资源新增/修改 Request VO")
@Data
public class ResourceSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12706")
    private Long id;

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "名字不能为空")
    private String name;
    @Schema(description = "文件地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("文件地址")
    private String url;
    @Schema(description = "类型", example = "1")
    private Integer type;

    @Schema(description = "排序")
    private Long sort;

    @Schema(description = "描述", example = "你猜")
    private String remark;

}